﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ProjectProperties;
using BusinessLayer;


namespace GUI
{
    public partial class Product : Form
    {
        public Product()
        {
            InitializeComponent();
        }

        private void Product_Load(object sender, EventArgs e)
        {
            BlockDelete oBlockDelete = new BlockDelete();
            oBlockDelete.Function(txtSelectProduct);
        }

        private void btnNew_Click(object sender, EventArgs e)
        {

        }

        private void btnSave_Click(object sender, EventArgs e)
        {

        }

        private void btnCancel_Click(object sender, EventArgs e)
        {

        }

        private void btnClose_Click(object sender, EventArgs e)
        {

        }

        private void txtSelectProduct_TextChanged(object sender, EventArgs e)
        {

        }

        private void txtSelectProduct_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                MessageBox.Show("Enter");
            else if (e.KeyCode == Keys.Down)
                MessageBox.Show("Down");
        }

        private void dtgSelectProduct_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            KeyEventArgs s = new KeyEventArgs(Keys.Enter);
            txtSelectProduct_KeyDown(sender, s);   
        }                
    }
}
